const { get } = require("http")
const mock = require('mockjs')
const { text } = require("stream/consumers")
const random = mock.Random



const getComponentList = () => [
   {
    fe_id: 'c1',
    type: "questionTitle",
    title: "标题",
    isHidden: false,
    isLocked: false,
    props: {
      text: "个人信息填写",
      level: 1,
      isCenter: true
    }
  },
  {
    fe_id: 'c4',
    type: "questionInfo",
    title: "选择框",
    isHidden: false,
    isLocked: false,
    props: {
      title: "请描述你自己",
      desc:"描述..."
    }
  },
  {
    fe_id: 'c7',
    type:"questionParagraph",
    title: "66",
    isHidden: false,
    isLocked: false,
    props:{
      text:'6666 \n 22226565',
      isCenter:true
    }
  },

  {
    fe_id: 'c2',
    type: "questionInput",
    title: "输入框",
    isHidden: false,
    isLocked: false,
    props: {
      title: "你的名字",
      placeholder: "请输入你的名字",
    }
  },
  {
    fe_id: 'c3',
    type: "questionInput",
    title: "输入框2",
    isHidden: false,
    isLocked: false,
    props: {
      title: "你的邮箱",
      placeholder: "请输入你的邮箱",
    }
  },
  {
    fe_id: 'c5',
    type: "questionRadio",
    title: "单选框",
    isHidden: false,
    isLocked: false,
    props: {
      title: "请选择你的职业",
      options: [
        {
          label: "学生",
          value: "student"
        },
        {
          label: "教师",
          value: "teacher"
        },
        {
          label: "其他",
          value: "other"
        },
      ],
      value:'',
      isVertical: false
    }
  },{
    fe_id: 'c6',
    type: "questionCheckbox",
    title: "多选框",
    isHidden: false,
    isLocked: false,
    props: {
      title: "请选择你的兴趣爱好",
      options: [
        {
          label: "篮球",
          value: "basketball",
          checked:false
        },
        {
          label: "足球1",
          value: "football",
          checked:false
        },
        {
          label: "乒乓球",
          value: "pingpang",
          checked:false
        }
      ],
      isVertical:false
    }
  }
] 



module.exports = getComponentList